﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameSchool.Models
{
	public class UserPointsRepository
	{
		UserPointsDBContextDataContext db = new UserPointsDBContextDataContext();
		public IEnumerable<UserPoint> UserPoints()
		{
			return db.UserPoints;
		}

		public void Save()
		{
			db.SubmitChanges();
		}

		public void Add(UserPoint newUserPoint)
		{
			db.UserPoints.InsertOnSubmit(newUserPoint);
		}
	}
}